// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router';
import ElementUI from 'element-ui';
import mockdata from './mock';
import axios from 'axios';
import mavonEditor from 'mavon-editor' // markdown-it对象：md.s_markdown, md => mavonEditor实例 // or // mavonEditor.markdownIt import 'mavon-editor/dist/css/index.css' // use Vue.use(mavonEditor)


//css
import 'element-ui/lib/theme-chalk/index.css';
import 'mavon-editor/dist/css/index.css'

Vue.use(ElementUI);
Vue.use(mavonEditor);
Vue.config.productionTip = false;
Vue.prototype.$http = axios;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>',
  beforeCreate:function() {
    console.log('beforeCreate')
  }
})
